package cn.wolfcode.shop.mapper;

import cn.wolfcode.shop.domain.SkuProperty;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SkuPropertyMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SkuProperty record);

    SkuProperty selectByPrimaryKey(Long id);

    List<SkuProperty> selectAll();

    int updateByPrimaryKey(SkuProperty record);

    List<SkuProperty> selecyByCatalogId(Long catalogId);

    Integer selectForCountByCatalogId(Long catalogId);

    List<Map> generateSku(@Param("skuPropertyList") List<SkuProperty> skuPropertyList, @Param("count") int count);

    /*List<Map> generateSku(@Param("skuPropertyIds") Long[]skuPropertyIds,@Param("count") int count);*/
}